package com.gvsoft.analyse.packet;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONPObject;
import com.gvsoft.analyse.inf.IPacket;
import com.gvsoft.business.MsgInfo;

/**
 * Created with IntelliJ IDEA.
 * ProjectName:gvMsgRouting
 * Author: zhaoqiubo
 * Date: 15/8/13
 * Time: 下午3:15
 * Desc:
 */
public class MsgPacket extends Packet implements IPacket {

   public final static String HEADER = "M";
   private MsgInfo msgInfo;

    public MsgInfo getMsgInfo(){

        msgInfo = JSON.parseObject(this.getPacketBody(), MsgInfo.class);
        return msgInfo;

    }

}
